from machine import Pin
from time import sleep

# GPIO5 (D1) is the internal LED for NodeMCU
led = Pin(5, Pin.OUT)
# The internal LED turn on when the value is 1
while True:
    led.value(1)
    sleep(6)
    led.value(0)
    sleep(1)